答案:$a=1, b=1$
解法一:令 $t = \frac{1}{x}$,则 $x \to +\infty \Rightarrow t \to 0^+$。
原式 $= \lim_{t \to 0^+} [\frac{a+bt}{t} e^t - \frac{1}{t}] = \lim_{t \to 0^+} \frac{(a+bt)e^t - 1}{t}$。
由极限存在知 $\lim_{t \to 0^+} [(a+bt)e^t - 1] = a - 1 = 0 \Rightarrow a = 1$。
原式 $= \lim_{t \to 0^+} \frac{(1+bt)e^t - 1}{t} = \lim_{t \to 0^+} [be^t + \frac{e^t-1}{t}] = b + 1$。
由题设 $b + 1 = 2 \Rightarrow b = 1$。
解法二:利用泰勒公式 $e^{\frac{1}{x}} = 1 + \frac{1}{x} + o(\frac{1}{x})$。
$(ax+b)(1 + \frac{1}{x} + o(\frac{1}{x})) - x = (a-1)x + a + b + \frac{b}{x} + o(1) = 2$。
对比系数得 $a-1=0 \Rightarrow a=1$;$a+b=2 \Rightarrow b=1$。